package com.yaorange.vo;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class AllocateVo {
    private String name;//名单名称
    @JsonFormat(pattern = "yyyy-MM-dd",timezone="GMT+8")
    private Date date;//导入日期
    private Long number;//导入数量
    private Long allocated;//已分配数量
    private Long unallocated;//未分配数量（导入数量-已分配数量）


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Long getNumber() {
        return number;
    }

    public void setNumber(Long number) {
        this.number = number;
    }

    public Long getAllocated() {
        return allocated;
    }

    public void setAllocated(Long allocated) {
        this.allocated = allocated;
    }

    public Long getUnallocated() {
        return unallocated=number-allocated;
    }

    public void setUnallocated(Long unallocated) {
        this.unallocated = unallocated;
    }
}
